from django.db import models
from apps.common.base.models import BaseModel
from apps.user.models import UserModel
from apps.education.course.models import Course

class CourseEvaluate(BaseModel):

    user=models.ForeignKey(UserModel, related_name='user_courseEvaluate', verbose_name='用户', on_delete=models.SET_NULL, null=True, blank=True, db_constraint=False)
    course=models.ForeignKey(Course, related_name='course_courseEvaluate', verbose_name='课程', on_delete=models.SET_NULL, null=True, blank=True, db_constraint=False)
    content = models.CharField("内容", max_length=2000, blank=True, null=True, default='')
    urls = models.CharField("图片", max_length=10000, blank=True, null=True, default='')

    class Meta:
        verbose_name = 'CourseEvaluate'
        verbose_name_plural = verbose_name
